<template>
    <div class="balance-container">
        <div class="balance-box acea-row row-center">
            <img src="../assets/images/my_balance.png" alt="my-balance" class="my-balance">
            <div class="balance-info-box">
                <div class="balance-price">300.00</div>
                <div class="balance-text">余额</div>
                <Button size="large" color="#FF8D51" class="get-money-btn" @click="jumpPage(`getMoney`)">提现</Button>
            </div>
        </div>
        <img src="../assets/images/shadow.png" alt="shadow" class="shadow-img">
        <div class="balance-list-box">
            <div class="balance-list-item acea-row row-middle" @click="jumpPage('balanceInfo')">
                <img src="../assets/images/my_balance_info.png" alt="my-balance-info" class="my-balance-info">
                <div class="acea-row row-middle row-between van-hairline--bottom">
                    <div>余额明细</div>
                    <img src="../assets/images/arrow-right.png" alt="arrow-right" class="arrow-right">
                </div>
            </div>
            <div class="balance-list-item acea-row row-middle" @click="jumpPage('getMoneyList')">
                <img src="../assets/images/my_balance_list.png" alt="my-balance-info" class="my-balance-info">
                <div class="acea-row row-middle row-between van-hairline--bottom">
                    <div>提现记录</div>
                    <img src="../assets/images/arrow-right.png" alt="arrow-right" class="arrow-right">
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    import {Button} from 'vant';

    export default {
        name: "Balance",
        components: {
            Button
        },
        data() {
            return {}
        },
        methods: {
            jumpPage(page) {
                this.$router.push(page)
            }
        }
    }
</script>

<style scoped lang="scss">
    .balance-box {
        width: 345px;
        height: 200px;
        background: rgba(13, 205, 181, 1);
        border-radius: 8px;
        margin: 10px auto auto 15px;
        position: relative;

        .my-balance {
            width: 20px;
            height: 20px;
            position: absolute;
            top: 20px;
            left: 20px;
        }

        .balance-info-box {
            text-align: center;

            .balance-price {
                font-size: 36px;
                font-weight: 500;
                color: #ffffff;
                margin-top: 35px;
            }

            .balance-text {
                font-size: 16px;
                font-weight: 400;
                color: #ffffff;
            }

            .get-money-btn {
                width: 120px;
                height: 44px;
                background: rgba(255, 141, 81, 1);
                border-radius: 22px;
                margin-top: 18px;
            }
        }
    }

    .shadow-img {
        width: 345px;
        height: 20px;
        margin: 0 auto;
        display: block;
    }

    .balance-list-box {
        background: rgba(255, 255, 255, 1);
        border-radius: 8px;
        padding: 0 20px;
        width: 345px;
        margin: 10px auto;

        .balance-list-item {
            height: 65px;

            .my-balance-info {
                width: 20px;
                height: 20px;

                & + div {
                    height: 65px;
                    flex: 1;
                    margin-left: 20px;
                    font-size: 16px;
                    font-weight: 400;
                    color: #42455F;
                }
            }

            .arrow-right {
                width: 14px;
                height: 14px;
            }
        }
    }
</style>
